import java.io.InputStream;

/**
 * @Author Big_white
 * @Date 2021/11/9
 */
public class CoffeeBar {
    public static void main(String[] args) {
        //两份巧克力加一份豆浆longblack
        Drink order=new LongBlack();
        System.out.println("费用1="+order.cost());
        System.out.println("描述="+order.getDes());
        order=new Milk(order);
        System.out.println("order加入一份牛奶费用="+order.cost());
        System.out.println("order加入一份牛奶描述="+order.getDes());
        order=new Chocolate(order);
        System.out.println("order加入一份牛奶，一份巧克力费用"+order.cost());
        System.out.println("order加入一份牛奶，一份巧克力描述"+order.getDes());
        order=new Chocolate(order);
        System.out.println("order加入一份牛奶，两份巧克力费用"+order.cost());
        System.out.println("order加入一份牛奶，两份巧克力描述"+order.getDes());
        System.out.println("==========================");
        Drink order2=new DeCaf();
        System.out.println("无因咖啡的费用"+order2.getPrice());

    }
}
